﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.snowflake
{
	// Token: 0x020000FB RID: 251
	public class TUndropStmt : TCustomSqlStatement
	{
		// Token: 0x06000858 RID: 2136 RVA: 0x00301E53 File Offset: 0x00300053
		public void setDbObjectName(TObjectName dbObjectName)
		{
			this.dbObjectName = dbObjectName;
		}

		// Token: 0x06000859 RID: 2137 RVA: 0x00301E5C File Offset: 0x0030005C
		public TObjectName getDbObjectName()
		{
			return this.dbObjectName;
		}

		// Token: 0x0600085A RID: 2138 RVA: 0x00301E64 File Offset: 0x00300064
		public TUndropStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstUndropDatabase;
		}

		// Token: 0x0600085B RID: 2139 RVA: 0x00301E78 File Offset: 0x00300078
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.dbObjectName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x0600085C RID: 2140 RVA: 0x00301EB5 File Offset: 0x003000B5
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600085D RID: 2141 RVA: 0x00301EC5 File Offset: 0x003000C5
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001209 RID: 4617
		private TObjectName dbObjectName;
	}
}
